import React from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { connect } from 'umi';
import OperpQuery from '@/components/OperpQuery';

class ViewPage extends React.Component<any, any> {
  constructor(props: any) {
    super(props);
    this.state = {
      loading: false,
      visible: false,
      freshNum: 1,
    };
  }
  componentDidMount() {}
  getObj = (value: any) => {};

  render() {
    const { freshNum } = this.state;

    return (
      <PageHeaderWrapper title={false} breadcrumbRender={false} ghost>
        <OperpQuery
          sysReportName="ReportTransRecord"
          scroll={{ x: 'max-content', y: '500px' }}
          freshNum={freshNum}
          callback={(e) => this.getObj(e.Id)}
        />
      </PageHeaderWrapper>
    );
  }
}
export default connect(({ Abp }: API.IConnectState) => ({
  response: Abp.response,
  currentUser: Abp.currentUser,
}))(ViewPage);
